using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UIController : MonoBehaviour
{
    [SerializeField]
    public DialogueController dialogController;
    private Transform m_canvas;

    private void Awake()
    {
        m_canvas = GameObject.Find("Canvas").transform;
        DialogueController.currentDialogueController = dialogController = GameObject.Find("DialoguePanel").GetComponent<DialogueController>();
    }
    // Start is called before the first frame update
    void Start()
    {
            DialogueReader dialogueReader = new DialogueReader();
            dialogueReader.GetAllDialogue(Application.streamingAssetsPath + "/Excels");
    }

    // Update is called once per frame
    void Update()
    {
        //if (Input.GetKeyDown(KeyCode.E))
        //{
        //    //Vector2 positon = Input.mousePosition;
        //    //m_dialogController = DialogueBoxController.Create(m_canvas, positon,200);
        //    m_dialogController.LoadDialogue("NPC1a");
        //    StartCoroutine(m_dialogController.NextContent());
        //}
    }
}
